﻿<metro:MetroWindow x:Class="Ags.MonsterTools.AboutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:metro="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:behaviours="http://metro.mahapps.com/winfx/xaml/shared"
        Title="About Monstertools" Height="300" Width="400"
        x:Name="AboutView"
                   ShowInTaskbar="False"
                   ShowCloseButton="False"
                   ShowMinButton="False"
                   ShowMaxRestoreButton="False"
                   Loaded="AboutWindow_OnLoaded"
         xmlns:local="clr-namespace:Ags.MonsterTools">
    <i:Interaction.Behaviors>
        <behaviours:BorderlessWindowBehavior
      AllowsTransparency="False"
      EnableDWMDropShadow="True" />
    </i:Interaction.Behaviors>
    <Window.Resources>
        <Style x:Key="CloseBtn" TargetType="Button">
            <Setter Property="Width" Value="75"></Setter>
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
            <Setter Property="Margin" Value="0,5,5,5"></Setter>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>

        <local:GifImage GifSource="/MonsterTools;component/Media/ghostundpacman.gif" AutoStart="True"></local:GifImage>
        
        <Grid Grid.Row="1">
            <WrapPanel Orientation="Vertical" Grid.Column="0" Grid.Row="0" >
                <Label Content="{Binding Title}"></Label>
                <Label Content="{Binding Desc}"></Label>
                <Label Content="{Binding Copyright}"></Label>
                <Label Content="{Binding Version}"></Label>
            </WrapPanel>
        </Grid>
        
        <Button Style="{StaticResource CloseBtn}"
                Grid.Row="2" 
                Command="{Binding CloseWindowCommand}" CommandParameter="{Binding ElementName=AboutView}">Close</Button>
    </Grid>
</metro:MetroWindow>
